package com.lzs.DAO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lzs.PO.Menu;
import com.lzs.PO.Role;

public interface RoleDAO {

	public List<Role> findRoleList(@Param("keyword") String keyword);

	public List<Role> findRolePagelist(@Param("keyword") String keyword, @Param("startIndex") Integer startIndex,
			@Param("pageSize") Integer pageSize);
//	public List<Role> findRolePagelist(@Param("startIndex") Integer startIndex,
//			@Param("pageSize") Integer pageSize);
//	
//	public List<Role> selectRoleById(Map<String, Object> map);
//	
//	public List<Menu> selectMenuById(Map<String, Object> map);

	public long countByRoleid(@Param("roleid") Integer roleid);

	public void addRoleWithMenuids(Map<String, Object> map);

	public void addRole(Role role);

	public Role selectRoleMenuById(@Param("roleid")Integer roleid);

	public void updateRole(Role role);

	public void updateRoleMenu(Map<String, Object> map);

	public void deleteRoleMenuById(Map<String, Object> map);

	public void deleteRoleById(Map<String, Object> map);

	public List<Role> findRoles();

}
